package com.ruoyi.project.dict.ebook.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 电子资料对象 ebook
 * 
 * @author shixiangwen
 * @date 2021-12-29
 */
public class Ebook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 分类 */
    @Excel(name = "分类")
    private Long classify;

    /** 书名 */
    @Excel(name = "书名")
    private String name;

    /** 范围 */
    @Excel(name = "范围")
    private String range;

    /** 年级 */
    @Excel(name = "年级")
    private Long grade;

    /** 知识点 */
    @Excel(name = "知识点")
    private String knowledge;

    /** 摘要 */
    @Excel(name = "摘要")
    private String summary;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 权重 */
    @Excel(name = "权重")
    private Long weight;

    /** 说明 */
    @Excel(name = "说明")
    private String content;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassify(Long classify) 
    {
        this.classify = classify;
    }

    public Long getClassify() 
    {
        return classify;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setRange(String range) 
    {
        this.range = range;
    }

    public String getRange() 
    {
        return range;
    }
    public void setGrade(Long grade) 
    {
        this.grade = grade;
    }

    public Long getGrade() 
    {
        return grade;
    }
    public void setKnowledge(String knowledge) 
    {
        this.knowledge = knowledge;
    }

    public String getKnowledge() 
    {
        return knowledge;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classify", getClassify())
            .append("name", getName())
            .append("range", getRange())
            .append("grade", getGrade())
            .append("knowledge", getKnowledge())
            .append("summary", getSummary())
            .append("createdTime", getCreatedTime())
            .append("weight", getWeight())
            .append("content", getContent())
            .append("cover", getCover())
            .toString();
    }
}
